﻿function setItem(name, val) {
    sessionStorage.setItem(name, val);
}

function getItem(name) {
    return sessionStorage.getItem(name);
}

export default {
    install: function (Vue) {
        Vue.prototype.setItem = (name, val) => setItem(name, val);
        Vue.prototype.getItem = (name) => getItem(name);
    }
}; 